added the toggle button that toggles between views

Signed-off-by: Nicholas Tan Jerome <nicholastanjerome@gmail.com>