Adding functionality to the sites pages