added js logic for submit button