create inline menu only when needed