removed width and height 100%
Throw exceptions on error
added simple demo popup to show error