toggle projects when selected, update button style in response.
Simplify handling of undefined properties