fix home route bug due to wrong method in routes