input and animation cleanup