added edit page+functionality