posts module controller