global settings fully working in angular, ui can be improved