refactore bankgui package