add rail fcn and button animates