changed backhome function