remove redundant code and added css