added notification events

added beforeShow, afterShow, beforeHide and afterHide events