src: lots of refractoring to layout, added new fab functions