dynamic resizing
put buttons on top