updated posts and comments controller, created views as well