Added link color reversion on mousedown in expanded mode. Did a bit of refactoring

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>