Added a timeout and onclick behavior for notifications