added functionalitt and styling