added posts and comments functionality