[FIX] prevents overlapping blockings (post-wip)

- closes #1152
- imports put in the beginning of the file
- better identifier for msg (hasErrors -> errorMessage)
- removed inline style, used messageBox partials
- refactored vars -> wvars
- pep8 fixes