moved view code out of GA class