added base files for ajax and media pages