Cleaned up posts controller