Working version of program. Second view is still empty