new modal patter implmented, hooray