added css and expanded some functionality