fix border disappearing on click