Fixed bug with edit button showing up for wrong user