updated view button, as it was being affected by the jquery.forms code. Moved it outside the form