wow, modalbox function written.