changed to use 3 subviews