Implemented basic functionality of the edit activity