Rewrote UI into pre and post-inflate fragments