Added custom function for adding class to element and some base styles