Moved ace editor to directive