updated styles and cleaned up javascript