Added edit page functionality