refactor my codes
edit views and add text editor