Add function to edit, view, delete, add post