major code tidy

- switching between auto and manual working
- ie11 specific bug exists