added functionality for hiding sprites in main