Removing unused UI elements