added edit for to show pages