Fix close button issue in navbar