add everything for ajax page loads
bunch of shit from awhile back