updated functionality; added jquery-ui for further development