added styling and transation functionilty