remove history and fix UI issue for mobile