move helper BaseContrller functions to HelperTrait