Added more collision detection, corrections and more.
The accept button can be hidden now. When there's no accept but, the window will be closed when clicking off the popover and changes will be applied.