changed modal to not guess at positioning