showing views not working appropriately
view logic improved