refactored all actions into actions.js. Added automatic disconnect handling. Adjusts placement of click dots to account for scroll height and width and many other changes