added posts controller with index action