made better code in class View and Bootstrap