added posts views and logic