viewable

the image is viewable. just need to move the variable to the if
statements