updated code for new page design