Added functionality to pages