group page initialisation in one function