added snap functionality and bootstrap