changed authorisation to a modal after done