demo controller with render and redirects