implements flexable views