add helper methods in base controller for flash messages