Added the functionality for convert button