solved issue of modal running off page