fix styles and work on non-js submit