committing for the sake of gitpullery
Tried to modularize all the php pages