Removed unused code
Issue #8346 by tuj: Fixed issue with current slide not being clear quitting creation process before time. Refactored controller to better injection pattern