Added edit button. Introduced knockoutjs to handle the state of edit and group button.