fixed redirect after form submission, and fixed formatting in routes, and moved methods into logical groups, fixes #64