added custom function file for testing spec
finish layout and routes