Is there a way to limit the number of notifications. Also notification only if the tab is not active.