working on gallery state change
confussion when appending and queieng