ticket:15 added jquery click function
ticket:15 change view and added tests
ticket:15 delete old code