remove unused code and check for existing songs  before displaying them