Trying out possible fix for loading problem. Also moved away a security header.
Added page overlay when using menus
Changed configuration loading