finish ajax part of the home page