fixed some errors finally it work well
added css desing
added tests