Updating menu bar method for better code