added expand functionality for flaps
fixed a bug in bottom aligned custom flaps and added tab switching via tap interaction