class diagram added, fixed popup bug