added toggle view feature