After buffer switch hook

My goal was to run some code after I've switched the buffer.
As an example: I'm using emacs nav panel, and it's handy to update it after buffer switch.
Please, correct me if I've put the hook in the wrong place.
Thank you.