Added views and some controller logic.