some function related changes
adding ace editor and reorganizing some stuff