Added toggle and active states to lock and hide buttons on linkage viewer