Implemented edit and draft page