Implemented flowlayout