edit app js and index route