added class in parameters for getting gui input