added gallery and time control