add animation to switch to main view
change animation
refactory
refactor base hcobject
add db wrapper