events added for enter button