added js to form buttons