added basic popup functionality

still needs some work :(