added editviewcontroller, and functional buttons