Made changes to widgets.js for  editing, deleting and loading
of newly added widgets without refreshing the page.
The widget edit fields appeared like images because the elements
were not being focused when clicked. Added a new event to javascript to focus
the elements when clicked.