adding snippets for controller and router