added option to use custom base controller