added a lot of stuff and got form submission working