fixed error where modal was appearing behind main screen