Added auto-hide function to notifications
Added input validation to dialog