add a fun for return firstview and second view