added submit button and setting up jquery event