cleaned up code

deleted unnecessary building-popup function