got modal to be centred and have dynamic width