Setting the side toolabr to the top

This PR contains a part of #6348 thus fixing the overlap issue of main toolbar on right side.