add edit button to main page