added message box instead of alerts which fade away in 1000ms