removing php code, going to use a framework instead