adds form submit functionality and pry