working scratchpad in editviewcontroller