fix Init functions for retaining hash on pagination links, and adding hidden submit button