fixing controllers edit and delete, add view for posts