adds views and actions for Posts controller