Created predispatch file

Runs on every page