Adding add track button

-made add track function generate to minimize code