timer and enter key added