basic view and hide working