tab to space and used OnGUI method

arranged the code and I added OnGUI method