Moved add post controller to fragment.