fix bugs on main page oops