changed dimen units to dp and modified min API to support older devices