version 0.6.2, encapsulaion of back button functions and optimization of variables