adding functionality to styled pages