create new routines work with new tables created. updated panel was also implemented so to stop refresh of page everytime.
made things neater
Merge pull request #117 from nbguzman/master

Create new routine fixed to work with new tables