Added checking if toolbar exists