retrieving and storing a value BaseController constructor