refactor and generisice available view and guessed view