add resize bar to the main view