setup baseController