fix close delay problem

Hi Zack

This pull request do the followings:

1. fix close delay bug
2. leave the show/hide jobs to angular
3. add a config provider to store notification settings