addind the edit mode
improvements in front-end