Put button onClick actions into seperate functions
fix display message for the first 5 seconds after button press