tidy the constructer of BasicModelPanel