handle task on home page