implemented h and v split panels