homeViewController to swift