Add code for each page activity