connected actions to view controller