Implemented creating items in creating new gallery process, moved some functions to class in gallery module