connected to view