added save functionality
implemented  flexbox layout