added modal window, and kill/build functions for it