added logout function and edit mapRoute