implemented viewdeck and some ui