updated script and styles