Fix match edit paging and buttons

Fix a bug in the Javascript that prevented moving to previous match
pages. Also change the layout of the buttons in the match edit page to
be standard to make them more readable.