added gallery and some admin functions