adding client side code, qTip popup lib, code refactoring