Fixed hardware tab and sidebar behaviour

Changes:
 - fixed highlighting *Hardware* tab,
 - added sidebar menu in *Edit device* view,

@xliiv @quamilek please review.