changed popup menu, and added popup box