created device function
added card reader call in sales page