Made html -> php

And changed some lines