edit main and list function in home controller