added the ability to configure the conditions of changing favicon and badge label