adapted gallery to v3
added messenger + some small changes