Removed unnecessary code

Fixed when scripts are injected
-Fixed some bugs with Error handling

- Removed not used Welcome screen
- Fixed popup problem