moving code mirror out of main
removing resources