add next and previous for controller