Added some vies and some controller code.