fixing javascript bug with editing. making collection type disabled
input. Merging display options code