added blacking out effect for pause