formatting bootstrap form and added handlers