Implemented return to prev URL