Refactored controller code
You only get a delete button if on your post's show page
Created recent scope for posts