set direction class & buttons created