cleaning up the panel example some