Habit controller

Added basic actions to the controller.