Fixed bug where edit and delete links showed