code change for kibana to make sure modal is loaded first

bug fix for auth modal to load