Don't use hard coded vales for width and height of panel.