tidy some ui and modify some homepage function definition