fixing file page for mobile
fixing diffpage logic