used wp functions

Hard code removed and impletemented WordPress provided functions to
include header and footer