add close event
Merge branch 'master-angularfire' of https://github.com/jinwyp/publish-platform into master-angularfire