Fixing alignment of reopen button
Setting appropriate activation state for buttons based on selected note