added dialog boxes, moved things around. TODO: Get the active object working!