Removed manual posting code from template and view