added controller and sortable gallery