Fixed crash when touching palette

Also can now touch palettes to open them on library