add loginview and fix isVisisble method