Edit Layout and finish audio when home and back button clicked