added display, capture, edit to html. also added new functions to js