Added several functions to initiate page