Fix 2.0

- add missing resource admin.search
- add the function```set_previous_url``` to smarty for resolving issues #903 and #982