adds styling and removes unnescessary code