rectified the button not marked as selected bug. resolves #13