adding a submit button, some js work