create new routines work with new tables created. updated panel was also implemented so to stop refresh of page everytime.
made things neater