don't mix tabs and spaces
only catch submit() once

previously the same code was called 12 times, once for each page.
library to install shortcuts