Fixed left and right buttons and added arrow functionality