handle onclick for routing from <a> internally