Passing arguments to dynamic methods, fix swipe methodto work properly.