edited js and styles for form