added public dir and changed index route