Moved close button to left and fixed bug when clicking widges closes it