Implemented jquery ui, did some improvements in templates