fix algorithm of height autoresizing; work on toolbar (styling)