fixed direction of applicationToggle, started trying to develop a modular system that works with both working scripts