Add support of Fit mode in toolbar