resize view on panel resize