finished all viewing functions