updated config and app controller