Added some controller logic and basic styles.