current_url move to context processor, html re-write for performence improve