many many changes
changed html to php