- if a modal window is open clicking on the background hides the modal now
- fixed some bugs