simplified mvc controller code