add views and posts controller