Join page formatting and replaced onClick listener with form submit listener