cleaned up view code, removed unused styles