Rewrite of tempus ui