Updated the code for Axis layout to detect if force animation still going and cancel it before preceeding