Using ngshow instead of ngswitch, because switch had scoping problems.