fixed controls buttons on resizing