set close buttons
refactor some stuff, make zclip work with new modal