put .php into external file

prevent from reloading after every action