Refactored Authorisation and fixed chart for IE