Gallery controller