Inserted some more layout controls

* predeclaring process type, for some reason it is needed now
* inserted page history