fixed errors on delete and on show view. Tested functionality on project model