tweaks

- removed unnecessary page directives
- refactoring
- added internet connectivity check
- removed unnecessary bootstrap and jquery js references