fonction if connect? - relation with view