abstract some html and clean controllers/actions