add a effect when a menu onclick it will scroll to a suitable position