instead of introducing a new local var you can use `html_attributes[:selected]`