Rewrite of facebook layout