passing router options when creating app instance