Added edit functionality, pretty CSS not included.