implement home action logic