Added basic edit functionality. Needs logic for user privledges.