minimized button and bugfix