Add menu changing state

Added support for automatic updates and also changing the state of the icon to yellow, orange or red depending upon the timing of the preferred train.