Loop function implemented (loop/loopIn/loopOut) + loop button