avoid reloading query again when press back button using link_to_function