Finally got the Application to play the midi file!!!
Changed UI layout.