Cleaned up js/css a bit and made view logic more dynamic.