added functional edit button with page