design work; javascript added