added refresh option in view library
margin for canvas just for display purposes