performance improvements #1
code style changes and fixed error in background script
performance improvements #2
changed design, fixed edit form, performance improvements