global settings partially working in angular