set Obj
put methods in access class
refactor
fix error $gallery $valid not found