added most of jquery interface interactions