separated functional php with views