Moved gui listeners from inner classes to view