fix UI issue for firefox