added modal properly