Updated controllers with some base functionality.